package rs.fon.is.music.domain;

import rs.fon.is.music.util.Constants;
import thewebsemantic.Namespace;
import thewebsemantic.RdfProperty;
import thewebsemantic.RdfType;

@Namespace(Constants.SCHEMA)
@RdfType("Place")
public class Place extends Thing{
	
	@RdfProperty(Constants.SCHEMA + "geo")
	private GeoCoordinates geo;
	
	@RdfProperty(Constants.SCHEMA + "address")
	private PostalAddress address;
	
	//dodala
	@RdfProperty(Constants.SCHEMA + "telephone")
	private String telephone;

	public GeoCoordinates getGeo() {
		return geo;
	}

	public void setGeo(GeoCoordinates geo) {
		this.geo = geo;
	}

	public PostalAddress getAddress() {
		return address;
	}

	public void setAddress(PostalAddress address) {
		this.address = address;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	@Override
	public String toString() {
		
		String s = "Place: " + getName()
				+ "\nURI: " + getUri() 
				+ "\nURL: " + getUrl() 
				+ "\ntelephone: " + getTelephone() 
				+ "\n" + getGeo()
				+ "\n" + getAddress();
		
		return s;
	}

}
